import pygame,sys
pygame.init()
screen=pygame.display.set_mode([640,480])   #创建一个640*480的窗体
screen.fill([255,255,255])                    #给窗体填充白色背景
#pygame.draw.circle(screen,[255,0,0],[100,100],30,0)    #把园绘制在100,100的位置上
#pygame.draw.circle(screen,[255,0,0],[640/2,480/2],30,0) #把园绘制在屏幕中间
pygame.draw.rect(screen,[255,0,0],[250,150,300,200],2)  #绘制矩形
pygame.display.flip()
while True:
    for event in pygame.event.get():
        if event.type==pygame.QUIT:
            sys.exit()